Component org.nuxeo.ecm.core.orphanVersionsCleanup
In bundle org.nuxeo.ecm.core
Contributions
- org.nuxeo.ecm.core.orphanVersionsCleanup--listener
- org.nuxeo.ecm.core.orphanVersionsCleanup--configuration
- org.nuxeo.ecm.core.orphanVersionsCleanup--schedule
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.orphanVersionsCleanup">
<extension target="org.nuxeo.ecm.core.scheduler.SchedulerService" point="schedule">
<schedule id="orphanVersionsCleanup">
<!-- cleanup every day at 1:30 AM -->
<cronExpression>0 30 1 * * ?</cronExpression>
<event>orphanVersionsCleanup</event>
</schedule>
</extension>
<extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
<listener name="orphanVersionsCleanup" async="true" postCommit="true"
class="org.nuxeo.ecm.core.versioning.OrphanVersionCleanupListener">
<event>orphanVersionsCleanup</event>
</listener>
</extension>
<extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
<documentation>
Configuration property for the maximum number of orphan versions to delete in one transaction.
This is only meaningful if the OrphanVersionCleanupListener is active.
</documentation>
<property name="org.nuxeo.orphanVersionsCleanup.commitSize">1000</property>
</extension>
</component>